﻿@model dsacbasic.Models.LoginViewModel
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>管理员登录</title>
    <link href="~/Content/css/css.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/bootstrap/css/bootstrap.css" rel="stylesheet" />
    <link href="~/Content/bootstrap/css/bootstrap-responsive.css" rel="stylesheet" />
</head>
<body>
    @using (Html.BeginForm())
    {
    <fieldset style="width: 500px; margin: 100px auto;">
        <legend>管理员登录</legend>
        <label for="username">
            用户名</label>
        <div class="div_text">
            <div class="input-prepend">
                <span class="add-on"><i class="icon-user"></i></span>
                @Html.TextBoxFor(x => x.UserName)
                @*<input name="UserName" id="UserName" type="text" value="admin" class="username span2" />*@
            </div>
        </div>
        <label for="password">
            密码</label>
        <div class="div_text">
            <div class="input-prepend">
                <span class="add-on"><i class="icon-lock"></i></span>
                @*<input name="Password" id="Password" type="password" class="password span2" />*@
                @Html.PasswordFor(x => x.Password)
            </div>
        </div>
        @Html.ValidationSummary()
        <div class="button_div" style="padding-left: 120px;">
            <input type="submit" value="登录" class="btn btn-primary" />
            @Html.ActionLink("注册", "Register")
        </div>
        <div class="clear">
        </div>
    </fieldset>
    }
    <script type="text/javascript" src="~/Content/bootstrap/js/jquery.js"></script>
    <script type="text/javascript" src="~/Content/bootstrap/js/bootstrap.js"></script>
</body>
</html>
